package coder.taiji.test.springnetty.tcp.inbound;

import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * describe:
 *
 * @author helloworldyu
 * @date 2018/3/14
 */
public class FirstInboundChannel extends ChannelInboundHandlerAdapter {
	@Override
	public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
		ByteBuf byteBuf = (ByteBuf) msg;
		System.out.println("firstinbound不处理，向下传递");
		//msg 没有处理掉还得向下传。
		ctx.fireChannelRead(msg);
	}
}